<?
/**
* @return void
* @param string $selection_pointer
* @param string $addparams
* @desc This function generates links and selection titles for the given container by years, months or days. 
**/
function get_infochannelfilter($selection_pointer=false){
	global $sapi_obj, $env, $http_path, $lang;

	if( $env["infochannelfilterdata.".$selection_pointer] ) {
		foreach($env["infochannelfilterdata.".$selection_pointer] as $kyy=>$val) {
			$counter++;
			$stream[$counter]["TITLE"]=$val;
			switch($selection_pointer) {
				case "year":
				$stream[$counter]["HREF"]=$env["document.url"].$val."/";
				break;
				case "month":
				$stream[$counter]["HREF"]=$env["document.url"].$env["argv_virtual.year"]."/".$val."/";
				break;
				case "day":
				$stream[$counter]["HREF"]=$env["document.url"].$env["argv_virtual.year"]."/".$env["argv_virtual.month"]."/".$val."/";
				break;
			}
			$stream[$counter]["COUNTER"]=$counter;
		}
		$stream[$counter]["LENGTH"]=$counter;
	}

}
?>